package cool.mtc.minghe.service.service.sys.org;

import cool.mtc.minghe.data.model.sys.org.dto.*;
import cool.mtc.minghe.data.model.sys.org.form.*;
import cool.mtc.minghe.data.model.sys.org.query.*;
import cool.mtc.core.page.PageData;

import java.util.List;

/**
 * @author 明河
 */
public interface OrgService extends cool.mtc.minghe.service.service.BaseService {

    long insert(OrgForm form);

    void update(OrgForm form);

    void delete(Long id);

    List<OrgListDTO> list(OrgQuery query);

    PageData<OrgListDTO> pageList(OrgQuery query);

    OrgDTO info(Long id);

    List<OrgDictDTO> listDictTree();
}
